<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { getUserVip } from "../api/api";
const tableData = ref()
onMounted(()=>{
    userFB()
})
//获取数据
const userFB = async() => {
    const res = await getUserVip()  
    tableData.value = res.data.data
}
</script>

<template>
    <el-scrollbar>
        <el-table :data="tableData">
            <el-table-column prop="_id" label="id" width="300" />
            <el-table-column prop="mail" label="用户邮箱" width="300" />
            <el-table-column prop="createdAt" label="会员开通时间" width="300" />
            <el-table-column prop="expiresAt" label="会员到期时间" />
            
        </el-table>
    </el-scrollbar>
</template>

<style scoped>
</style>